package info.pandd.centrumDowodzeniaSMS;

import android.app.AlertDialog;
import android.content.Context;
import android.content.DialogInterface;

public class Alerts{
	public static void showAlert(String text, Context context){
		AlertDialog.Builder builder = new AlertDialog.Builder(context);
		builder.setTitle("O programie");
		
		builder.setPositiveButton("Dzięki, Staszek!", new DialogInterface.OnClickListener() {
			
			@Override
			public void onClick(DialogInterface dialog, int which) {
				
			}
		});
		
		builder.setMessage(text);
		
	AlertDialog alert = builder.create();
	alert.show();
		
	}
	
	public static void showSentMessageBox(String receiver, String number, String text, String date, Context context){
		AlertDialog.Builder builder = new AlertDialog.Builder(context);
		builder.setTitle(receiver + " (" + number + ")");
		
		builder.setPositiveButton("Już pamiętam, Staszek!", new DialogInterface.OnClickListener() {
			
			@Override
			public void onClick(DialogInterface dialog, int which) {
				
			}
		});
		
		builder.setMessage("Data wysyłki: " + date + "\n" + text);
		
	AlertDialog alert = builder.create();
	alert.show();
		
	}
}